import axios from "axios";
import {api_url}  from "./config";

const getSongs=(pageNum=0,pageSize=30)=>{
    return axios.get(`${api_url}/songs/?pageSize=${pageSize}&pageNum=${pageNum}`).then(res=>res.data);
};

export  {getSongs};